package com.springbootjsp.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    private int user_id;
    private String user_account;
    private String user_pwd;
    private int status;
    private int score;

    //登录验证
    public User(String user_account, String user_pwd) {
        this.user_account = user_account;
        this.user_pwd = user_pwd;
    }

    //注册验证
    public User(String user_account, String user_pwd, int status) {
        this.user_account = user_account;
        this.user_pwd = user_pwd;
        this.status = status;
    }

    public User(String user_account) {
        this.user_account = user_account;
    }
}
